<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // function test(){
    //   var a = b = 123
    // }
    // test();

    function fn(a) {
      console.log("🚀 ~ file: test.html ~ line 17 ~ fn ~ a", a)    

      var a = 123
      console.log("🚀 ~ file: test.html ~ line 19 ~ fn ~ a", a)

      function a(){
      }
      console.log("🚀 ~ file: test.html ~ line 21 ~ fn ~ a", a)

      var b = function(){
      }
      console.log("🚀 ~ file: test.html ~ line 24 ~ fn ~ b", b)
      
      function d(){
      }
      console.log("🚀 ~ file: test.html ~ line 27 ~ fn ~ d", d)
    }
    fn(1);
  </script>
</body>
</html>